package com.wikidot.designpatterns.strategy;

public class Context {

	private final Compression compression;

	/**
	 * Create new context object and configure it with strategy object.
	 * 
	 * @param compression
	 */
	public Context(Compression compression) {
		this.compression = compression;
	}

	public void storeFile(String file, String content) {
		System.out.print("Storing to " + file + " ... ");
		compression.compress(content);
		System.out.println(" done.");
	}
}
